package com.asset.dispoal.business.bsBorrowDetail.domain.db.mapper;

import com.asset.dispoal.business.bsBorrowDetail.domain.db.entity.BorrowDetail;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author qr
 * @date 2022/4/7$
 */
@Mapper
public interface BsBorrowDetailMapper {

    /**
     * 批量添加
     *
     * @param borrowDetailList
     */
    void batchSaveBsBorrowDetail(@Param("borrowDetailList") List<BorrowDetail> borrowDetailList);


    /**
     * 修改借款人详情
     *
     * @param detail
     */
    void updateBorrowDetail(@Param("item") BorrowDetail detail);


    List<BorrowDetail> queryBorrowDetail(@Param("agreement") String agreement);

    void batchOptBsBorrowDetail(@Param("borrowDetailList") List<BorrowDetail> borrowDetailAddDtoList);
}
